package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/***
 * 工序文件查看记录
 * !!!! 注意，此表使用的是联合主键
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_process_file_view_history")
public class ProcessFileViewHistory extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "userId")
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件Id")
    private Long storageId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "工序id")
    private Long processId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "派单id")
    private Long wuId;

    //点击次数,默认1
    private Integer cnt;

}
